#ifndef TEETIMER_H
#define TEETIMER_H

#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QHBoxLayout>
#include <QFont>
#include <QTimer>
#include <QMessageBox>
#include <QLabel>
#include <QMenu>
#include <QMenuBar>
#include <QIcon>
#include "tee.h"
#include "presetwindow.h"

class teetimer : public QWidget
{
Q_OBJECT

private:
    int mins;
    int secs;
    bool started;

    QLineEdit *minutes;
    QLineEdit *seconds;
    QPushButton *startButton;
    QHBoxLayout *layout;
    QTimer *timer;
    QMessageBox *msgBox;
    QLabel *label;
    QMenuBar *menu;
    QMenu *fileMenu;
    QMenu *presetsMenu;
    QAction *quitAction;
    QAction *ceylonAction;
    QIcon *icon;
    tee tees[10];
    presetWindow *pw;

    bool isNumeric(QString str);

public:
    explicit teetimer(QWidget *parent = 0);

signals:

public slots:
    void updateTime();
    void updateInputs();
    void startTimer();
    void openPresetWindow();

};

#endif // TEETIMER_H
